<?php echo previous_link($section,$action,$go,$modal_window); 
if ($msg != "default") echo $msg_output; 
$query_edit = "SELECT * FROM course_project WHERE id='$id'";
$edit = mysql_query($query_edit, $connection) or die(mysql_error());
$row_edit = mysql_fetch_assoc($edit);

if ($action != "confirm") 
{
if ($msg == "default") {
?>
<p>Include a brief description of a project or key deliverable that students will be working on through the duration of the course. </p>
<p>For example: &quot;...throughout the course, students will be working on a marketing plan for Acme Company.  They will complete weekly assignments that feed into this course project.  Students will compile a portfolio throughout the course and present it in Module 8.&quot;</p>
<div class="stacked">
<span class="icon"><img src="images/disk.png" border="0" align="absmiddle" /></span><input id="Submit" name="Submit" type="submit" class="save_progress_form" value="<?php if (($action == "edit") || ($go == "missing")) echo "Update"; else echo "Save"; ?>">
</div>
<table class="dataTable">
<tr style="background-color: <?php echo $color1; ?>">
	<td class="dataLabel">In the course project, students will...</td>
    <td class="dataLabel"><textarea id="project_desc1" name="project_desc1" cols="80" rows="20"><?php if (($action == "edit") || ($view == "proposal_detail")) echo $row_edit['project_desc1']; ?></textarea></td>
    <td class="data help_text">Provide a description of the course project.</td>
</tr>
</table>
<div class="stacked">
<span class="icon"><img src="images/disk.png" border="0" align="absmiddle" /></span><input id="Submit" name="Submit" type="submit" class="save_progress_form" value="<?php if (($action == "edit") || ($go == "missing")) echo "Update"; else echo "Save"; ?>">
</div>
<input name="vid" type="hidden" value="<?php if (($action == "add")  && ($id == "default"))echo "1"; elseif (($action == "edit") && ($vid != "default")) echo ($row_edit['vid']); else echo ($row_edit['vid'] + 1); ?>" />
<?php }
}
if ($action == "confirm") 
{ ?>
<h2>Confirm</h2>
<div class="stacked">Is the course project description acceptable?</div>
<div class="stacked"><span class="icon"><img src="images/tick.png" border="0" align="absmiddle" /></span><a href="index.php?section=proj_deliv&amp;action=add&amp;go=<?php echo $go; ?>&amp;view=<?php echo $view; ?>&amp;cid=<?php echo $cid; ?>&amp;modal_window=<?php $modal_window; ?>">Yes</a></div>
<div class="stacked"><span class="icon"><img src="images/exclamation.png" border="0" align="absmiddle" /></span><a href="index.php?section=cpd&amp;action=edit&amp;go=no&amp;view=<?php echo $view; ?>&amp;cid=<?php echo $cid; ?>&amp;vid=<?php echo $vid; ?>&amp;id=<?php echo $row_edit['id']; ?>&amp;modal_window=<?php $modal_window; ?>">No, further edits are required</a></div>
<table class="dataTable">
<tr style="background-color: <?php echo $color1; ?>">
	<td class="dataLabel">In the course project, students will...</td>
    <td class="data"><?php echo $row_edit['project_desc1']; ?></td>
</tr>
</table>
<?php } ?>